package tw.asap.plus.presenter;

import android.widget.ListAdapter;

import java.util.ArrayList;
import java.util.List;

import tw.asap.plus.entity.CartBean;
import tw.asap.plus.entity.SubCartBean;
import tw.asap.plus.ui.adapter.PinedSectionAdapter;
import tw.asap.plus.ui.custom.CartView;

/**
 * Created by Yax on 15/11/13.
 */
public interface CartPresenter{

    void add(PinedSectionAdapter.GoodsItem goods);

    void minus (PinedSectionAdapter.GoodsItem goods);

    List<CartBean> getCartGoodsList();

    void bindView(CartView cartView, CartCheckoutListener listener);

    void setOnCheckListener(CartCheckoutListener listener);

    void bindGoodsList(ArrayList list);

    void notifyData();

    void setAdapter(ListAdapter adapter);

    void setSecondAdapter(ListAdapter adapter);

    void bindCategoryList(ArrayList<PinedSectionAdapter.GoodsItem> categoryList);

    void clearCart();

    void addSubItem(SubCartBean subCartBean, PinedSectionAdapter.GoodsItem goodsItem);

    void minusSubItem(SubCartBean subCartBean, PinedSectionAdapter.GoodsItem goodsItem);
}
